<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/common/default.jsp"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<style type="text/css">
		.advance_tip_pwd{
			background-color: #fff;
		    left: 42%;
		    position: fixed;
		    top: 200px;
		    width: 487px;
		    z-index: 5;
		}
		</style>
	</head>
	<body>
	
		<div class="cinema_tip">
		    <div class="cinema_subject clearfix">
		        <div class="cinema_title">
		            <a href="#">用户中心</a>
		            >
		            <a href="#" class="cinema_option">角色管理</a>
		        </div>
		    </div>
			<form  id="sysUserInfoSearchForm" method="get">
		       <div class="cinema_search clearfix">
					<div class="cinema_button">
				        	<input id="sysUserInfoSearch" type="submit" value="查询" name="" style="float: none;" class="cinema_inquiry movie_no">
					</div>
					<div class="cinema_condition width_84">
						<div class="cinema_smart">
							<div class="cinema_inter">
								<!-- <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 用户名： </label> -->
								<input type="text" id="search_userName" name="search_userName" maxlength="50" placeholder="角色名" class="col-xs-10 col-sm-2" value="${res.data.userName}"/>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
		
		<div class="cinema_list">
			<div class="movie_button">
		    	<shiro:hasPermission name="sysUserInfo:add">
					<a class="movie_new" href="${ctx}/sys/role/toAdd" style="background-color: rgb(75, 208, 131); color: rgb(255, 255, 255);">新建</a>
				</shiro:hasPermission>
				
			</div>
			
			<div  class="column_content">
				<div class="column_content1">
					<table id="sysUserInfoDatas" width="100%" height="" border="0" cellpadding="0" cellspacing="1" class="border_top">
						<tr style="background-color: rgb(243, 247, 255);">
			                <th nowrap="" style="padding:0px 5px;">序号</th>
			                <th nowrap="" style="padding:0px 5px;">角色名</th>
			                <th nowrap="" style="padding:0px 5px;">操作</th>
			            </tr>
			            
			            <c:forEach var="res" items="${res.data.rows}"  varStatus="status">
			            <tr class="odd" style="background-color: rgb(255, 255, 255);" id="userinfo_row_${res.role_id}" >
			            	<td nowrap="" style="padding:0px 5px;" title="${res.role_id}">&nbsp;${status.index + 1}</td>
			            	<td nowrap="" style="padding:0px 5px;" title="${res.roleName}">&nbsp;${res.roleName}</td>
			            	
			            	<td nowrap="" style="padding:0px 5px;width:150px" >
				            	<a style="margin-left: 3%;" href="${ctx}/sys/role/toUpdate/${res.role_id}">编辑</a>
							</td>
			            </tr>
			            </c:forEach>
					</table>
				</div>
			</div>
			
			
		</div>
	</body>
</html>
